package model;

public class Manuscript {
	
	private String name;
	private String content;
	/**The author's username.*/
	private String author;
	
	/**
	 * Creates a blank Manuscript with all fields initialized to an empty string.
	 */
	public Manuscript() {
		name = "";
		content = "";
		author = "";
	}
	
	/**
	 * Creates a Manuscript with the given name and contents.
	 * 
	 * @param theName The name of the manuscript
	 * @param theContent The contents of the Manuscript
	 * @param theAuthor The username of the author
	 */
	public Manuscript(String theName, String theContent, String theAuthor) {
		name = theName;
		content = theContent;
		author = theAuthor;
	}

	/**
	 * Set the name of the manuscript.
	 * @param theNewName The new name
	 */
	public void setName(String theNewName) {
		name = theNewName;
	}
	
	/**
	 * Get the name of the manuscript.
	 * @return The name of the manuscript
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * Set the contents of the Manuscript to the new contents.
	 * @param theNewContent The new contents
	 */
	public void setContent(String theNewContent) {
		content = theNewContent;
	}
	
	/**
	 * Get the contents of the Manuscript.
	 * @return The contents of the Manuscript
	 */
	public String getContent() {
		return content;
	}
	
	/**
	 * Set the author of the manuscript.
	 * @param theAuthor The author's username
	 */
	public void setAuthor(String theAuthor) {
		author = theAuthor;
	}
	
	/**
	 * Get the username of the author.
	 * @return The author's username
	 */
	public String getAuthor() {
		return author;
	}
}
